package com.water.wfo.component.jdbc;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;
import javax.sql.DataSource;

/**
 * packageName com.water.wfo.component.jdbc
 *
 * @author junhuili
 * @version JDK 8
 * @date 2023/10/29
 * @description TODO
 */
@EnableAutoConfiguration
@Configuration
public class DataSourceConfig {
    @Resource
    private DataSourceProperties dataSourceProperties;

    @Bean
    public DataSource dataSourceSpied(){
        return  dataSourceProperties.getMaster();
    }

}
